<?php

namespace App\Http\Controllers\Front\Feishu;

use App\Common\Controllers\Front\FrontController;
use App\Services\FeishuService;
use Illuminate\Http\Request;

class EventController extends FrontController
{
    protected $service;

    /**
     * constructor.
     */
    public function __construct()
    {
        parent::__construct();

        $this->service = new FeishuService();
    }


    public function challenge(Request $request){
        $data = $request->all();

        $ret = $this->service->event($data);

        return $ret;
    }
}
